import request from '@/utils/request'

// 管理员列表
export function adminList (params) {
  return request({
    url: 'v1/adminUser/list',
    method: 'get',
    params
  })
}
// 管理员添加
export function adminAdd (data) {
  return request({
    url: 'v1/adminUser/add',
    method: 'post',
    data: data
  })
}
// 管理员編輯
export function adminEdit (data) {
  return request({
    url: 'v1/adminUser/edit',
    method: 'post',
    data: data
  })
}
// 角色列表
export function roleList (params) {
  return request({
    url: 'v1/role/list',
    method: 'get',
    params
  })
}
export function roleAdd (data) {
  return request({
    url: 'v1/role/add',
    method: 'post',
    data: data
  })
}
export function roleEdit (data) {
  return request({
    url: 'v1/role/edit',
    method: 'post',
    data: data
  })
}



